package kr.hkit.powerjava.chapter09.submit;

class Dog {

	private String name =null;
	public String breed=null;
	private int age=0;

	public Dog(String name, int age){
		this.name = name;
		this.age = age;
	}

	public Dog(String name, String breed, int age) {
		this.name = name;
		this.breed = breed;
		this.age=age;
	}

	@Override
	public String toString() {
		return "강아지이름: " + name + ", 종:" + breed + ", 나이: " + age;
	}
	
}


public class DogTest {
	public static void main(String[] args) {
		Dog d = new Dog("아롱이",3);
		Dog d1 = new Dog("포도", "요크셔테리어", 11);
	
		System.out.println(d);
		System.out.println(d1);

	}
}

